#include "../Header/Game.h"
#include "../Header/GameObject.h"
#include <iostream>

using namespace std;

Game::Game()
{
	pointerToPlayer = NULL;
}

vector<GameObject*> Game::getObjects()
{
	try
	{
		if(this == NULL) throw 1;
	}
	catch(int e)
	{
		cout << "Error: this \"GameObject\" doesn't exist... "<<endl;
	}
	return objects;
}

void Game::addGameObject(GameObject* inputObj)
{
	objects.push_back(inputObj);
}